package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MedicalExaminationsMapper;
import com.ruoyi.system.domain.MedicalExaminations;
import com.ruoyi.system.service.IMedicalExaminationsService;

/**
 * 预约体检记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@Service
public class MedicalExaminationsServiceImpl implements IMedicalExaminationsService 
{
    @Autowired
    private MedicalExaminationsMapper medicalExaminationsMapper;

    /**
     * 查询预约体检记录
     * 
     * @param id 预约体检记录主键
     * @return 预约体检记录
     */
    @Override
    public MedicalExaminations selectMedicalExaminationsById(Long id)
    {
        return medicalExaminationsMapper.selectMedicalExaminationsById(id);
    }

    /**
     * 查询预约体检记录列表
     * 
     * @param medicalExaminations 预约体检记录
     * @return 预约体检记录
     */
    @Override
    public List<MedicalExaminations> selectMedicalExaminationsList(MedicalExaminations medicalExaminations)
    {
        return medicalExaminationsMapper.selectMedicalExaminationsList(medicalExaminations);
    }

    /**
     * 新增预约体检记录
     * 
     * @param medicalExaminations 预约体检记录
     * @return 结果
     */
    @Override
    public int insertMedicalExaminations(MedicalExaminations medicalExaminations)
    {
        return medicalExaminationsMapper.insertMedicalExaminations(medicalExaminations);
    }

    /**
     * 修改预约体检记录
     * 
     * @param medicalExaminations 预约体检记录
     * @return 结果
     */
    @Override
    public int updateMedicalExaminations(MedicalExaminations medicalExaminations)
    {
        return medicalExaminationsMapper.updateMedicalExaminations(medicalExaminations);
    }

    /**
     * 批量删除预约体检记录
     * 
     * @param ids 需要删除的预约体检记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalExaminationsByIds(Long[] ids)
    {
        return medicalExaminationsMapper.deleteMedicalExaminationsByIds(ids);
    }

    /**
     * 删除预约体检记录信息
     * 
     * @param id 预约体检记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalExaminationsById(Long id)
    {
        return medicalExaminationsMapper.deleteMedicalExaminationsById(id);
    }
}
